package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.Map;

/**
 * @author ：lintao
 * @date ：Created in 2020/12/4
 * @description ：用户Dao层接口
 * @version: 1.0
 */
public interface UserDao {
    public User findByUsername(String username);
    public void add(User user);
    public void setUserAndRole(Map<String, Integer> map);
    public Page<User> selectCondtion(String queryString);
    public User findById(Integer id);
    public Integer[] findUserAndRole(Integer userId);
    public void deleteUserAndRole(Integer id);
    public void updateById(User user);
    public void deleteById(Integer id);
}
